import {request} from "@/utils/request";
import type BaseResponse from "@/api/types/BaseResponse";
import type LoginResponse from "@/api/types/LoginResponse";

// 钉钉小程序专用登录
export async function login(code: string) {
    return await request<BaseResponse<LoginResponse>>({
        url: "/dingding/login",
        method: "POST",
        data: {code}
    })
}
